<?php
namespace app\admin\controller;

use app\common\component\admin\AdminService;

class ControllerBase extends \think\Controller {
	public function checkLogin() {
		$resultIsLogin = (new AdminService()) -> isLogin();
		if($resultIsLogin['code'] !== 0) {
			echo '<meta charset="utf-8"><script>window.location.href="/shuashuale/login";</script>';exit;
		}
	}
}
?>